#include<stdio.h>
int result(int *p){
	int gw,sw;
	gw=*p%10;
	sw=*p/10%10;
	if(gw%2==0&&sw%2==1) return 1;
	else return 0;
}
int main(){
	int p;
	p=22;
	printf("%d",result(&p));
}
